-- GENERATED SPELL FOR [Warlord Kolkanis] --


function spell0_5808(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5808', 5322, 1)
end

function spell1_5808(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_5808', 10317, 1)
end

function Sorts_5808(pUnit, Event)
local choix_sorts_5808 = math.random(0, 1)
if choix_sorts_5808 == 0 then
pUnit:RegisterEvent('spell0_5808', 1, 1)
end
if choix_sorts_5808 == 1 then
pUnit:RegisterEvent('spell1_5808', 1, 1)
end
end

function mob5808_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5808', math.random(1500, 3000), 1)
end

function mob5808_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5808_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5808_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5808, 1, 'mob5808_Action')
RegisterUnitEvent(5808, 2, 'mob5808_Leave')
RegisterUnitEvent(5808, 3, 'mob5808_Kill')
RegisterUnitEvent(5808, 4, 'mob5808_Die')
